﻿<Controls:SinacorWindow
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" 
    xmlns:Controls="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient;assembly=Sinacor.Infra.UI.Controls"
    xmlns:Validation="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient.Validation;assembly=Sinacor.Infra.UI.Controls"
    xmlns:Edit="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient.Edit;assembly=Sinacor.Infra.UI.Controls"
    x:Class="Sinacor.UI.Bovespa.Clientes.View.SmartClient.InformacoesCliente"
    Title="{DynamicResource Bovespa.Cliente.Label.InformacaoCliente}"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    AutoContentWidth="False"
    AutoContentHeight="False"
    ModuleId="ORD" 
    ModulePlus="False"
    WindowStartupLocation="CenterScreen"
    WindowState="Maximized"
    >

    <Controls:SinacorExpanderContainer x:Name="ExpContainer">
        <!--Grid Definition - 05 linhas principais-->
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="5" />
            <RowDefinition Height="*" />
            <RowDefinition Height="5" />
            <RowDefinition Height="*" MinHeight="100"/>
        </Grid.RowDefinitions>

        <!--Campos de Pesquisa-->
        <Controls:SinacorExpander x:Name="exp1" Grid.Row="0" Header="{DynamicResource Bovespa.Clientes.Label.Pesquisa}" IsExpanded="True">
            <Grid>
                <Controls:SinacorLabel x:Name="labelCliente"  HorizontalAlignment="Left" VerticalAlignment="Top" Width="44" Content="{DynamicResource Bovespa.Clientes.Label.Cliente}" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Margin="0,0,0,0"/>
                <Controls:SinacorInt32TextBox x:Name="textClienteCodigo" HorizontalAlignment="Left" VerticalAlignment="Top" Width="140" Text="" IsEnabled="False" TabIndex="5" Margin="48,0,0,0" Integers="7" AcceptsNegative="False" IsFormated="False"/>
                <Controls:SinacorTextBox x:Name="textClienteDigito" HorizontalAlignment="Left" VerticalAlignment="Top" Width="34" Text="" IsEnabled="False" TabIndex="6" Margin="192,0,0,0"/>
                <Controls:SinacorTextBox x:Name="textCliente" HorizontalAlignment="Left" VerticalAlignment="Top"  Width="290" IsEnabled="False" TabIndex="3" Margin="230,0,0,0" />
                <Controls:SinacorLabel x:Name="labelCpfCnpj" HorizontalAlignment="Left" VerticalAlignment="Top" Width="59" Content="{DynamicResource Bovespa.Clientes.Label.CPFCNPJ}" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Margin="516,0,0,0"/>
                <Controls:SinacorTextBox x:Name="textCPFCNPJ" HorizontalAlignment="Left" VerticalAlignment="Top" Width="165" IsEnabled="False" TabIndex="4" Margin="578,0,0,0"/>
                <Controls:SinacorLabel  x:Name="labelApelido" HorizontalAlignment="Left" VerticalAlignment="Top" Content="{DynamicResource Bovespa.Clientes.Label.Apelido}" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Width="42" Margin="757,0,0,0"/>
                <Controls:SinacorTextBox x:Name="textApelido" HorizontalAlignment="Left" VerticalAlignment="Top" Width="150" TabIndex="8" Margin="804,0,0,0" MaxLength="18"/>
                <Controls:SinacorLabel x:Name="labelOrigem" HorizontalAlignment="Left" VerticalAlignment="Top" Width="46" Content="{DynamicResource Bovespa.Clientes.Label.Origem}"  RenderTransformOrigin="0.501,0.5"  VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Margin="0,25,0,0" />
                <Controls:SinacorTextBox x:Name="textOrigem" HorizontalAlignment="Left" VerticalAlignment="Top" Width="171" IsEnabled="False" TabIndex="7" Margin="50,25,0,0"/>
                <Controls:SinacorLabel x:Name="labelClienteCI" HorizontalAlignment="Left" VerticalAlignment="Top" Width="160" Content="{DynamicResource Bovespa.Cliente.Label.ContaDeInvestimento}" Visibility="Collapsed" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Margin="185,25,0,0" />
                <Controls:SinacorLabel x:Name="labelClienteCD" HorizontalAlignment="Left" VerticalAlignment="Top" Width="160" Content="{DynamicResource Bovespa.Clientes.Label.ContaDeposito}" Visibility="Collapsed" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Margin="185,25,0,0"/>
                <Controls:SinacorTextBox x:Name="textCliContaInves" HorizontalAlignment="Left" VerticalAlignment="Top" Width="145" Text="" IsEnabled="False" TabIndex="5" Margin="345,25,0,0"/>
                <Controls:SinacorTextBox x:Name="textCliContaInvesDigito" HorizontalAlignment="Left" VerticalAlignment="Top" Width="26" Text="" IsEnabled="False" TabIndex="6" Margin="494,25,0,0"/>
                <Controls:SinacorLabel x:Name="labelAssessor" HorizontalAlignment="Left" VerticalAlignment="Top" Width="68" Content="{DynamicResource Bovespa.Clientes.Label.Assessor}" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Margin="506,25,0,0" />
                <Controls:SinacorTextBox x:Name="textAssessor" HorizontalAlignment="Left" VerticalAlignment="Top" Width="240" IsEnabled="False" TabIndex="9" Margin="578,25,0,0"/>
                <Controls:SinacorButton x:Name="buttonBusca" HorizontalAlignment="Left" VerticalAlignment="Top" Width="104" Click="ButtonBusca_Click" Content="{DynamicResource Bovespa.Clientes.Label.Pesquisar}" IsEnabled="False" Margin="822,25,0,0" IsDefault="True"/>
                <Controls:SinacorButton x:Name="buttonNovaBusca" HorizontalAlignment="Left" VerticalAlignment="Top" Width="23" Click="buttonNovaBusca_Click" Icon="IconButtonNewSearch"  Margin="930,25,0,0"/>
            </Grid>
        </Controls:SinacorExpander>

        <!--Campos de Dados do Cliente-->
        <Controls:SinacorExpander x:Name="exp2" Grid.Row="2" Header="{DynamicResource Bovespa.Clientes.Label.InformacoesCliente}" IsExpanded="True">
            <Grid x:Name="gridConteudoF">
                <!--Telefones-->
                <Controls:SinacorLabel HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" Content="{DynamicResource Bovespa.Clientes.Label.DDD}" x:Name="labelDDD"  Width="33" VerticalContentAlignment="Center" HorizontalContentAlignment="Right"/>
                <Controls:SinacorLabel VerticalAlignment="Top"  x:Name="labelEmail"  Width="36.188" HorizontalAlignment="Left" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Content="{DynamicResource Bovespa.Clientes.Label.Email}" Margin="335.812,0,0,0"/>
                <Controls:SinacorLabel HorizontalAlignment="Left" VerticalAlignment="Top"  x:Name="labelTelefone"  Width="53" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Content="{DynamicResource Bovespa.Clientes.Label.Telefone}" Margin="99,0,0,0"/>
                <Controls:SinacorLabel HorizontalAlignment="Left" VerticalAlignment="Top"  x:Name="labelRamal"  Width="45"  VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Content="{DynamicResource Bovespa.Clientes.Label.Ramal}" Margin="242.255,0,0,0"/>
                <Controls:SinacorLabel VerticalAlignment="Top"  x:Name="labelDDDFAX"  Width="33"  HorizontalAlignment="Left" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Content="{DynamicResource Bovespa.Clientes.Label.DDD}" Margin="0,25,0,0"/>
                <Controls:SinacorLabel VerticalAlignment="Top" Content="{DynamicResource Bovespa.Clientes.Label.FAX}"  x:Name="labelTelefoneFAX"  Width="52.984"  HorizontalAlignment="Left"   VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Margin="99,25,0,0"/>
                <Controls:SinacorLabel VerticalAlignment="Top"  x:Name="labelContatoFAX"  Width="45"  HorizontalAlignment="Left"   VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Content="{DynamicResource Bovespa.Clientes.Label.Contato}" Margin="242.255,25,0,0"/>
                <Controls:SinacorTextBox HorizontalAlignment="Left" VerticalAlignment="Top" Text="" Width="58"  x:Name="textDDDTel" IsEnabled="False"  TabIndex="10" Margin="37,0,0,0" />
                <Controls:SinacorTextBox HorizontalAlignment="Left" VerticalAlignment="Top" Text="" Width="40.557"   x:Name="textRamal"  IsEnabled="False" TabIndex="12" Margin="291.255,0,0,0"/>
                <Controls:SinacorTextBox VerticalAlignment="Top" Text="" HorizontalAlignment="Left" Width="82.255"   x:Name="textTelefone" IsEnabled="False"  TabIndex="11" Margin="156,0,0,0"/>
                <Controls:SinacorTextBox VerticalAlignment="Top" Text=""   x:Name="textEmail"  IsEnabled="False" Width="272" TabIndex="13" Margin="376,0,0,0" HorizontalAlignment="Left"/>
                <Controls:SinacorTextBox VerticalAlignment="Top" Text=""   x:Name="textDDDFAX1" IsEnabled="False"  HorizontalAlignment="Left" Width="58.016" TabIndex="14" Margin="37,25,0,0"/>
                <Controls:SinacorTextBox VerticalAlignment="Top" Text=""   x:Name="textFAX1" IsEnabled="False"  HorizontalAlignment="Left" Width="82.255"  TabIndex="15" Margin="156,25,0,0"/>
                <Controls:SinacorTextBox VerticalAlignment="Top" Text=""   x:Name="textContato1"  IsEnabled="False" Width="357"  TabIndex="16" Margin="291,25,0,0" HorizontalAlignment="Left"/>
                <Controls:SinacorTextBox VerticalAlignment="Top" Text=""   x:Name="textDDDFAX2" IsEnabled="False"  HorizontalAlignment="Left" Width="58.016" TabIndex="17" Margin="37,50,0,0"/>
                <Controls:SinacorTextBox VerticalAlignment="Top" Text=""   x:Name="textFAX2" IsEnabled="False"  HorizontalAlignment="Left" Width="82.255"  TabIndex="18" Margin="156,50,0,0"/>
                <Controls:SinacorTextBox VerticalAlignment="Top" Text=""   x:Name="textContato2"  IsEnabled="False" Width="356.745"  TabIndex="19" Margin="291,50,0,0" HorizontalAlignment="Left"/>
                <Controls:SinacorLabel VerticalAlignment="Top"   x:Name="labelDDDFAX_Copy"  Width="33" HorizontalAlignment="Left"   VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Content="{DynamicResource Bovespa.Clientes.Label.DDD}" Margin="0,50,0,0"/>
                <Controls:SinacorLabel VerticalAlignment="Top"   x:Name="labelTelefoneFAX_Copy"  Width="53" HorizontalAlignment="Left"   VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Content="{DynamicResource Bovespa.Clientes.Label.FAX}" Margin="99,50,0,0"/>
                <Controls:SinacorLabel VerticalAlignment="Top"   x:Name="labelContatoFAX_Copy"  Width="45" HorizontalAlignment="Left"   VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Content="{DynamicResource Bovespa.Clientes.Label.Contato}" Margin="242.255,50,0,0"/>

                <Grid Margin="0,75,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Height="Auto">
                    <Grid Visibility="Visible" x:Name="gridConteudoF1" >

                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>

                        <!--Endereço-->
                        <Controls:SinacorRadioButton x:Name="radioComercial" HorizontalAlignment="Left" Margin="0,25,0,0" VerticalAlignment="Top"  IsEnabled="False" Padding="2,0,0,0" Content="{DynamicResource Bovespa.Clientes.Label.Comercial}"/>
                        <Controls:SinacorRadioButton x:Name="radioResidencial" HorizontalAlignment="Left" Margin="0,45,0,0" VerticalAlignment="Top"  IsEnabled="False" Padding="2,0,0,0" Content="{DynamicResource Bovespa.Clientes.Label.Residencial}"/>
                        <Controls:SinacorLabel x:Name="labelEndereco" Margin="0,0,0,0" HorizontalAlignment="Left"   Width="92.856"  VerticalAlignment="Top"   VerticalContentAlignment="Bottom" HorizontalContentAlignment="Left" Content="{DynamicResource Bovespa.Clientes.Label.Endereco}"/>
                        <Controls:SinacorLabel x:Name="labelRua" Margin="104,0,0,0" HorizontalAlignment="Left"  Content="{DynamicResource Bovespa.Clientes.Label.Rua}"  Width="248"   VerticalAlignment="Top" VerticalContentAlignment="Bottom" HorizontalContentAlignment="Left"/>
                        <Controls:SinacorLabel x:Name="labelNumero" Margin="356,0,0,0" HorizontalAlignment="Left" Width="50" VerticalAlignment="Top" VerticalContentAlignment="Bottom" Content="{DynamicResource Bovespa.Clientes.Label.Numero}" HorizontalContentAlignment="Left"/>
                        <Controls:SinacorLabel x:Name="labelCidade" Margin="410,0,0,0" HorizontalAlignment="Left" Width="196.993"  VerticalAlignment="Top" VerticalContentAlignment="Bottom" Content="{DynamicResource Bovespa.Clientes.Label.Cidade}" HorizontalContentAlignment="Left"/>
                        <Controls:SinacorLabel x:Name="labelCEP" Margin="644.653,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="84.726" Content="{DynamicResource Bovespa.Clientes.Label.CEP}" HorizontalContentAlignment="Left" VerticalContentAlignment="Bottom"/>
                        <Controls:SinacorLabel x:Name="labelComplemento" Margin="733.719,0,0,0" HorizontalAlignment="Left" Width="91.404" VerticalAlignment="Top" Content="{DynamicResource Bovespa.Clientes.Label.Complemento}" HorizontalContentAlignment="Left" VerticalContentAlignment="Bottom"/>
                        <Controls:SinacorLabel x:Name="labelBairro" Margin="829.123,0,0,0" Width="134.268" VerticalAlignment="Top" HorizontalAlignment="Left" Content="{DynamicResource Bovespa.Clientes.Label.Bairro}" HorizontalContentAlignment="Left" VerticalContentAlignment="Bottom"/>
                        <Controls:SinacorLabel x:Name="labelUF" Margin="610.993,0,0,0" HorizontalAlignment="Left"    VerticalAlignment="Top" Width="29.66" Content="{DynamicResource Bovespa.Clientes.Label.UF}" HorizontalContentAlignment="Left" VerticalContentAlignment="Bottom"/>
                        <Controls:SinacorTextBox x:Name="textRua" Text="" Margin="104,25,0,0" IsEnabled="False" HorizontalAlignment="Left" Width="248" VerticalAlignment="Top" />
                        <Controls:SinacorTextBox x:Name="textNumero" Text="" Margin="356,25,0,0" IsEnabled="False"  HorizontalAlignment="Left" Width="50"  VerticalAlignment="Top" />
                        <Controls:SinacorTextBox x:Name="textCidade" Text="" Margin="410,25,0,0" IsEnabled="False"  HorizontalAlignment="Left" Width="196"   VerticalAlignment="Top"/>
                        <Controls:SinacorTextBox x:Name="textUF" Text="" Margin="610,25,0,0" IsEnabled="False"  HorizontalAlignment="Left" Width="30" VerticalAlignment="Top"  />
                        <Controls:SinacorTextBox x:Name="textCEP" Text="" Margin="644,25,0,0" IsEnabled="False" HorizontalAlignment="Left" Width="85"  VerticalAlignment="Top" />
                        <Controls:SinacorTextBox x:Name="textComplemento" Text="" Margin="733,25,0,0" IsEnabled="False" HorizontalAlignment="Left" Width="91"   VerticalAlignment="Top"/>
                        <Controls:SinacorTextBox x:Name="textBairro" Text="" Margin="828,25,0,0" IsEnabled="False"   VerticalAlignment="Top" Width="135" HorizontalAlignment="Left"/>

                        <!--Grupo de dados Bancários-->
                        <Controls:SinacorGroupBox Margin="0,70,0,0" Header="{DynamicResource Bovespa.Clientes.Label.Banco}" x:Name="groupBanco" VerticalAlignment="Top" HorizontalAlignment="Left" Width="321" Height="108"  >

                            <Grid Height="Auto" x:Name="gridBanco" VerticalAlignment="Stretch" Margin="0,5,0,0">

                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>

                                <Controls:SinacorLabel HorizontalAlignment="Left" Margin="72.951,0,0,0" Content="{DynamicResource Bovespa.Clientes.Label.Banco}"  x:Name="labelBco"  Width="47.027" VerticalAlignment="Top"   VerticalContentAlignment="Bottom" HorizontalContentAlignment="Left"/>

                                <Controls:SinacorTextBox x:Name="textBcoDiv" HorizontalAlignment="Left" Text="" Margin="72.951,24,0,0"  Width="47.027" IsEnabled="False"  VerticalAlignment="Top" />
                                <Controls:SinacorTextBox Text="" Margin="121.978,24,0,0"  IsEnabled="False" x:Name="textAgenciaDiv" Width="60" HorizontalAlignment="Left"   VerticalAlignment="Top"/>
                                <Controls:SinacorTextBox HorizontalAlignment="Left" Text="" Margin="121.978,48,0,0"  Width="60" VerticalAlignment="Top"  IsEnabled="False" x:Name="textAgenciaCta"  />
                                <Controls:SinacorLabel HorizontalAlignment="Left" Margin="121.978,0,0,0" Content="{DynamicResource Bovespa.Clientes.Label.Agencia}"  x:Name="labelAgencia"  Width="60" VerticalAlignment="Top"   VerticalContentAlignment="Bottom" HorizontalContentAlignment="Left"/>
                                <Controls:SinacorTextBox Text="" Margin="183.978,24,0,0"  IsEnabled="False" x:Name="textContaDiv" HorizontalAlignment="Left" Width="123.003"  VerticalAlignment="Top" />
                                <Controls:SinacorTextBox HorizontalAlignment="Left" Text="" Margin="183.959,48,0,0"  VerticalAlignment="Top"  IsEnabled="False" x:Name="textContaCta" Width="123.022" />
                                <Controls:SinacorLabel Margin="183.978,0,0,0" Content="{DynamicResource Bovespa.Clientes.Label.Conta}"  x:Name="labelConta"  Width="123.003" VerticalAlignment="Top" HorizontalAlignment="Left"   VerticalContentAlignment="Bottom" HorizontalContentAlignment="Left"/>
                                <Controls:SinacorLabel HorizontalAlignment="Left" Margin="0,24,0,0" Content="{DynamicResource Bovespa.Clientes.Label.Dividendos}"  x:Name="labelDividendos"  Width="70.951"  VerticalAlignment="Top"  VerticalContentAlignment="Center" HorizontalContentAlignment="Right"/>
                                <Controls:SinacorLabel HorizontalAlignment="Left" Margin="0,48,0,0" Content="{DynamicResource Bovespa.Clientes.Label.CtaCorrente}"   x:Name="labelCtaCorrente"  Width="70.951" VerticalAlignment="Top"   VerticalContentAlignment="Center" HorizontalContentAlignment="Right"/>
                                <Controls:SinacorTextBox Text="" Margin="72.951,48,0,0"  VerticalAlignment="Top"  HorizontalAlignment="Left" Width="47.027" IsEnabled="False" x:Name="textBcoCta" />

                            </Grid>

                        </Controls:SinacorGroupBox>

                        <!--Grupo de Limites Operacionais-->
                        <Controls:SinacorGroupBox Header="{DynamicResource Bovespa.Clientes.Label.Limitesoperacionais}" Margin="325,70,0,0" x:Name="groupLimitesOperacionais" HorizontalAlignment="Left" VerticalAlignment="Top" Width="167" Height="108">

                            <Grid Height="Auto" x:Name="gridLO" VerticalAlignment="Stretch" Margin="0,5,0,0">

                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>

                                <Controls:SinacorDecimalTextBox Text="" Margin="24.194,0,0,0"  VerticalAlignment="Top"   HorizontalAlignment="Left" Width="127.995" x:Name="textLOper1"  IsEnabled="False" MaxLines="1"  Integers="15"   Decimals="2" />
                                <Controls:SinacorDecimalTextBox Text="" Margin="24.194,24,0,0"  VerticalAlignment="Top"   HorizontalAlignment="Left" Width="127.995"  x:Name="textLOper2"  IsEnabled="False" MaxLines="1" Integers="15"  Decimals="2"/>
                                <Controls:SinacorDecimalTextBox Text="" Margin="24.194,48,0,0"  VerticalAlignment="Top"   HorizontalAlignment="Left" Width="127.995" x:Name="textLOper3"  IsEnabled="False" MaxLines="1"  Integers="15"  Decimals="2" />
                                <Controls:SinacorLabel Margin="0,0,0,0" Content="{DynamicResource Bovespa.Clientes.Label.numeroum}"  x:Name="labelLOper1"  Width="20.194"  VerticalAlignment="Top" HorizontalAlignment="Left"   VerticalContentAlignment="Center" HorizontalContentAlignment="Right"/>
                                <Controls:SinacorLabel Margin="0,24,0,0" Content="{DynamicResource Bovespa.Clientes.Label.numerodois}"   x:Name="labelLOper2"  Width="20.194" HorizontalAlignment="Left"  VerticalAlignment="Top"   VerticalContentAlignment="Center" HorizontalContentAlignment="Right"/>
                                <Controls:SinacorLabel Margin="0,48,0,0" Content="{DynamicResource Bovespa.Clientes.Label.numerotres}"   x:Name="labelLOper3"  Width="20.194" HorizontalAlignment="Left"  VerticalAlignment="Top"   VerticalContentAlignment="Center" HorizontalContentAlignment="Right"/>
                            </Grid>

                        </Controls:SinacorGroupBox>

                        <!--clienteBloqueado-->

                        <Controls:SinacorLabel x:Name="labelEmissorOrdem" Margin="496,66,0,0" Content="{DynamicResource Bovespa.Clientes.Label.EmissorOrdem}"  Width="219.725" HorizontalAlignment="Left" VerticalAlignment="Top"   VerticalContentAlignment="Bottom" HorizontalContentAlignment="Left"/>
                        <Controls:SinacorComboBox x:Name="comboEmissorOrigem" IsSynchronizedWithCurrentItem="True" Margin="496,90,0,0" HorizontalAlignment="Left" Width="220" VerticalAlignment="Top"   IsEditable="False" Focusable="False" IsTabStop="False" TabIndex="6"/>
                        <Controls:SinacorLabel x:Name="labelTransmissaoOrdem"  Margin="720,66,0,0" Content="{DynamicResource Bovespa.Clientes.Label.TransmissaoOrdem}" Width="219.725"  HorizontalAlignment="Left" VerticalAlignment="Top"  VerticalContentAlignment="Bottom" HorizontalContentAlignment="Left"/>
                        <Controls:SinacorTextBox x:Name="textTransmissaoOrigem" Text="" Margin="720,90,0,0" IsEnabled="False" HorizontalAlignment="Left" Width="243" VerticalAlignment="Top"   />
                        <Controls:SinacorLabel x:Name="labelBloqueio" Margin="496,114,0,0" Content="{DynamicResource Bovespa.Clientes.Label.Bloqueado}" Width="243" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Bottom"   Visibility="Collapsed" HorizontalContentAlignment="Left"/>
                        <Controls:SinacorTextBox x:Name="textBloqueio" VerticalAlignment="Bottom" Text="" Margin="496,137,0,0" IsEnabled="True" HorizontalAlignment="Left" Width="467" VerticalContentAlignment="Top" Visibility="Collapsed" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" Height="41" IsReadOnly="True"/>



                    </Grid>
                </Grid>
            </Grid>
        </Controls:SinacorExpander>

        <!--Campos de Posição-->
        <Controls:SinacorExpander x:Name="exp3" Grid.Row="5" Header="{DynamicResource Bovespa.Clientes.Label.Posicao}" IsExpanded="True" AllowExpand="False">

            <!--Controle Tab-->
            <Controls:SinacorTabControl x:Name="tabControl" Grid.Row="0" IsSynchronizedWithCurrentItem="True" HorizontalAlignment="Stretch" SelectedIndex="-1" TabIndex="17" VerticalAlignment="Stretch" SelectionChanged="SelectionChanged_Index" Height="Auto">

                <!--Aba de Custódia-->
                <Controls:SinacorTabItem x:Name="itemCustodia" Header="{DynamicResource Bovespa.Clientes.Label.Custodia}">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*" MinHeight="170"/>
                            <RowDefinition Height="25"/>
                        </Grid.RowDefinitions>
                        <!--Grid de Custódia-->
                        <Controls:SinacorDataGrid  Grid.Row="0" x:Name="dataGridCustodia"  ApplyingStyle="gridCustodia_ApplyingStyle">
                            <Controls:SinacorDataGrid.Columns>
                                <Controls:Column Name="Codigo" DisplayMemberPath="Titulo" Title="Bovespa.Clientes.Label.CodigoGrid"/>
                                <Controls:Column Name="Carteira" DisplayMemberPath="Carteira" Title="Bovespa.Clientes.Label.Carteira" HorizontalCellAlignment="Right" />
                                <Controls:Column Name="Disponivel" DisplayMemberPath="Disponivel" Title="Bovespa.Clientes.Label.Disponivel" HorizontalCellAlignment="Right" Decimals="4" Integers="8" StringFormat="n4"/>
                                <Controls:Column Name="Negociavel" DisplayMemberPath="Negociavel" Title="Bovespa.Clientes.Label.Negociavel" HorizontalCellAlignment="Right" Decimals="4" Integers="8" StringFormat="n4"/>
                                <Controls:Column Name="Projetado" DisplayMemberPath="Projetado" Title="Bovespa.Clientes.Label.Projetado" HorizontalCellAlignment="Right" Decimals="4" Integers="8" StringFormat="n4"/>
                                <Controls:Column Name="NegociosDia" DisplayMemberPath="NegociosDia" Title="Bovespa.Clientes.Label.NegociosDia" HorizontalCellAlignment="Right" Decimals="4" Integers="8" StringFormat="n4"/>
                                <Controls:Column Name="NegocioExecutar" DisplayMemberPath="NegocioExecutar" Title="Bovespa.Clientes.Label.NegocioExecutar" HorizontalCellAlignment="Right" Decimals="4" Integers="8" StringFormat="n4"/>
                                <Controls:Column Name="Anterior102004" DisplayMemberPath="Anterior102004" Title="Bovespa.Clientes.Label.Anterior102004" HorizontalCellAlignment="Right" Decimals="4" Integers="8" StringFormat="n4"/>
                                <Controls:Column Name="Custo" DisplayMemberPath="Custo" Title="Bovespa.Clientes.Label.Custo" HorizontalCellAlignment="Right" StringFormat="N2"/>
                                <Controls:Column Name="ValorAtual" DisplayMemberPath="ValorAtual" Title="Bovespa.Clientes.Label.ValorAtual"  HorizontalCellAlignment="Right" StringFormat="N2"/>
                                <Controls:Column Name="Variacao" DisplayMemberPath="Variacao" Title="Bovespa.Clientes.Label.Variacao" HorizontalCellAlignment="Right" StringFormat="N2"/>
                            </Controls:SinacorDataGrid.Columns>
                        </Controls:SinacorDataGrid>
                        <!--Legendas-->
                        <StackPanel Grid.Row="1" VerticalAlignment="Bottom" HorizontalAlignment="Left" Orientation="Horizontal" DockPanel.Dock="Left" Margin="0,4,0,0" Height="25">
                            <Controls:SinacorLabel Content="{DynamicResource Bovespa.Clientes.Label.Legenda}" x:Name="txtLegenda" HorizontalAlignment="Left" VerticalAlignment="Top" HorizontalContentAlignment="Left" Margin="0,0,0,0"/>
                            <Ellipse Fill="{DynamicResource BrushGridRowBusiness08}" Width="15" Height="15" StrokeThickness="0" Margin="0,0,0,0"/>
                            <Controls:SinacorLabel Content="{DynamicResource Bovespa.Clientes.Label.DemaisPosicao}"  HorizontalAlignment="Left" VerticalAlignment="Top" HorizontalContentAlignment="Left" Margin="0,0,0,0"/>
                            <Ellipse Fill="{DynamicResource BrushGridRowBusiness01}" Width="15" Height="15" StrokeThickness="0" Margin="0,0,0,0"/>
                            <Controls:SinacorLabel Content="{DynamicResource Bovespa.Clientes.Label.PosicaoCom}" x:Name="txtPosicaoCom"  HorizontalAlignment="Left" VerticalAlignment="Top" HorizontalContentAlignment="Left" Margin="0,0,0,0"/>
                            <Ellipse Fill="{DynamicResource BrushGridRowBusiness04}" StrokeThickness="0" Width="15" Height="15" Margin="0,0,0,0"/>
                            <Controls:SinacorLabel Content="{DynamicResource Bovespa.Clientes.Label.PosicaoEx}" x:Name="txtPosicaoEx" HorizontalAlignment="Left" VerticalAlignment="Top" HorizontalContentAlignment="Left" Margin="0,0,0,0" />
                        </StackPanel>
                    </Grid>

                </Controls:SinacorTabItem>

                <!--Aba de Conta Investimento-->
                <Controls:SinacorTabItem x:Name="itemInvestimento" Header="{DynamicResource Bovespa.Clientes.Label.ContaInvestimento}" >
                    <Grid x:Name="gridInvestimento">

                        <Grid.RowDefinitions>
                            <RowDefinition Height="*" MinHeight="170"/>
                            <RowDefinition Height="25" />
                        </Grid.RowDefinitions>

                        <Controls:SinacorDataGrid  Grid.Row="0"  x:Name="dataGridContaInvestimento" ApplyingStyle="dataGridContaInvestimento_ApplyingStyle">

                            <!--Colunas de Conta Investimento-->
                            <Controls:SinacorDataGrid.Columns>
                                <Controls:Column Name="Codigo" DisplayMemberPath="Titulo" Title="Bovespa.Clientes.Label.CodigoGrid"  HorizontalCellAlignment="Right" />
                                <Controls:Column Name="Carteira" DisplayMemberPath="Carteira" Title="Bovespa.Clientes.Label.Carteira" HorizontalCellAlignment="Right"/>
                                <Controls:Column Name="Disponivel" DisplayMemberPath="Disponivel" Title="Bovespa.Clientes.Label.Disponivel" HorizontalCellAlignment="Right" Decimals="4" Integers="8" StringFormat="n4"/>
                                <Controls:Column Name="Negociavel" DisplayMemberPath="Negociavel" Title="Bovespa.Clientes.Label.Negociavel" HorizontalCellAlignment="Right" Decimals="4" Integers="8" StringFormat="n4"/>
                                <Controls:Column Name="Projetado" DisplayMemberPath="Projetado" Title="Bovespa.Clientes.Label.Projetado" HorizontalCellAlignment="Right" Decimals="4" Integers="8" StringFormat="n4"/>
                                <Controls:Column Name="NegociosDia" DisplayMemberPath="NegociosDia" Title="Bovespa.Clientes.Label.NegociosDia" HorizontalCellAlignment="Right" Decimals="4" Integers="8" StringFormat="n4"/>
                                <Controls:Column Name="NegocioExecutar" DisplayMemberPath="NegocioExecutar" Title="Bovespa.Clientes.Label.NegocioExecutar" HorizontalCellAlignment="Right" Decimals="4" Integers="8" StringFormat="n4"/>
                                <Controls:Column Name="Anterior102004" DisplayMemberPath="Anterior102004" Title="Bovespa.Clientes.Label.Anterior102004" HorizontalCellAlignment="Right" Decimals="4" Integers="8" StringFormat="n4"/>
                                <Controls:Column Name="Custo" DisplayMemberPath="Custo" Title="Bovespa.Clientes.Label.Custo" StringFormat="N2"  HorizontalCellAlignment="Right"/>
                                <Controls:Column Name="ValorAtual" DisplayMemberPath="ValorAtual" StringFormat="N2" Title="Bovespa.Clientes.Label.ValorAtual" HorizontalCellAlignment="Right"/>
                                <Controls:Column Name="Variacao" DisplayMemberPath="Variacao" Title="Bovespa.Clientes.Label.Variacao" HorizontalCellAlignment="Right" StringFormat="N6" />
                            </Controls:SinacorDataGrid.Columns>
                        </Controls:SinacorDataGrid>

                        <StackPanel Grid.Row="1" VerticalAlignment="Bottom" HorizontalAlignment="Left" Orientation="Horizontal" DockPanel.Dock="Left" Margin="0,4,0,0" Height="25">
                            <Controls:SinacorLabel Content="{DynamicResource Bovespa.Clientes.Label.Legenda}" x:Name="txtLegendaInformar" HorizontalAlignment="Left" VerticalAlignment="Top" HorizontalContentAlignment="Left" Margin="0,0,0,0"/>
                            <Ellipse Fill="{DynamicResource BrushGridRowBusiness08}" Width="15" Height="15" StrokeThickness="0" Margin="0,0,0,0"/>
                            <Controls:SinacorLabel Content="{DynamicResource Bovespa.Clientes.Label.DemaisPosicao}"  HorizontalAlignment="Left" VerticalAlignment="Top" HorizontalContentAlignment="Left" Margin="0,0,0,0"/>
                            <Ellipse Fill="{DynamicResource BrushGridRowBusiness01}" StrokeThickness="0" Width="15" Height="15" Margin="0,0,0,0"/>
                            <Controls:SinacorLabel Content="{DynamicResource Bovespa.Clientes.Label.PosicaoCom}" x:Name="txtPosicaoComCustodia"  HorizontalAlignment="Left" VerticalAlignment="Top" HorizontalContentAlignment="Left" Margin="0,0,0,0"/>
                            <Ellipse Fill="{DynamicResource BrushGridRowBusiness04}" StrokeThickness="0" Width="15" Height="15" Margin="0,0,0,0"/>
                            <Controls:SinacorLabel Content="{DynamicResource Bovespa.Clientes.Label.PosicaoEx}" x:Name="txtPosicaoExCustodia" HorizontalAlignment="Left" VerticalAlignment="Top" HorizontalContentAlignment="Left" Margin="0,0,0,0" />
                        </StackPanel>
                    </Grid>
                </Controls:SinacorTabItem>

                <!--Aba de Conta Corrente-->
                <Controls:SinacorTabItem x:Name="itemContaCorrente" Header="{DynamicResource Bovespa.Clientes.Label.ContaCorrente}">
                    <Grid x:Name="gridContaCorrente"  >
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*" MinHeight="170"/>
                            <RowDefinition Height="25" />
                        </Grid.RowDefinitions>

                        <Controls:SinacorDataGrid Grid.Row="0" x:Name="dataGridContaCorrente" ApplyingStyle ="dataGridContaCorrente_ApplyingStyle">

                            <!--Colunas de Conta Corrente-->
                            <Controls:SinacorDataGrid.Columns>

                                <Controls:Column Name="Disponivel" DisplayMemberPath="Disponivel" Title="Bovespa.Clientes.Label.Disponivel" StringFormat="N2" HorizontalCellAlignment="Right"/>
                                <Controls:Column Name="Projetado" DisplayMemberPath="Projetado" Title="Bovespa.Clientes.Label.Projetado" StringFormat="N2" HorizontalCellAlignment="Right"/>
                                <Controls:Column Name="NegociosDia" DisplayMemberPath="NegociosDia" StringFormat="N2" HorizontalCellAlignment="Right" Title="Bovespa.Clientes.Label.NegociosDia"/>
                            </Controls:SinacorDataGrid.Columns>
                        </Controls:SinacorDataGrid>

                        <StackPanel Grid.Row="1" VerticalAlignment="Bottom" HorizontalAlignment="Left" Orientation="Horizontal" DockPanel.Dock="Left" Margin="0,4,0,0" Height="25">
                            <Controls:SinacorLabel Content="{DynamicResource Bovespa.Clientes.Label.Legenda}" x:Name="txtLegendaContaDesposito" HorizontalAlignment="Left" VerticalAlignment="Top" HorizontalContentAlignment="Left" Margin="0,0,0,0"/>
                            <Ellipse Fill="{DynamicResource BrushGridRowBusiness06}" Width="15" Height="15" StrokeThickness="0" Margin="0,0,0,0"/>
                            <Controls:SinacorLabel Content="{DynamicResource Bovespa.Clientes.Label.ContaInvestimentoxx}" x:Name="txtContaInvestimeno" Width="200"  HorizontalAlignment="Left" VerticalAlignment="Top" HorizontalContentAlignment="Left" Margin="0,0,0,0"/>
                            <Ellipse Fill="{DynamicResource BrushGridRowBusiness08}" StrokeThickness="0" Width="15" Height="15" Margin="0,0,0,0"/>
                            <Controls:SinacorLabel Content="{DynamicResource Bovespa.Cliente.Label.ContaDeposito}" x:Name="txtContaDeposito" HorizontalAlignment="Left" VerticalAlignment="Top" HorizontalContentAlignment="Left" Margin="0,0,0,0" />
                        </StackPanel>
                    </Grid>
                </Controls:SinacorTabItem>

            </Controls:SinacorTabControl>

        </Controls:SinacorExpander>

    </Controls:SinacorExpanderContainer>

</Controls:SinacorWindow>